package com.example.demo.dao;

import com.example.demo.entity.CourseChaptsBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.xml.soap.Text;
import java.util.List;

@Mapper
public interface CourseChaptsDao {
    List<CourseChaptsBean> getAll();

    Integer insert(CourseChaptsBean  courseChaptsBean);

    Integer edit(CourseChaptsBean courseChaptsBean);

    Integer del(Integer id);

   CourseChaptsBean getOne(Integer id);


    CourseChaptsBean getByName(String name);

    List<CourseChaptsBean> getPage(
            @Param("jump") Integer jump,
            @Param("pageSize") Integer pageSize,
            @Param("name") String name,
            @Param("sortOrder") String sortOrder
    );

    Integer getCount(
            @Param("name") String name
    );


}
